package com.hsgene.user.persistence;

import com.hsgene.user.condition.GroundServantCondition;
import com.hsgene.user.dto.user.groundservant.GroundServantDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 地服信息Repository
 * @ProjectName: hdas-geneshop
 * @Package: com.hsgene.user.persistence
 * @Author: 江承良
 * @CreateDate: 2018/10/19 9:54
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 */
@Repository
public interface GroundServantRepository {

    /**
     * 根据条件查询地服数量
     * @param condition 查询条件
     * @return
     */
    int groundServantCount(@Param("condition") GroundServantCondition condition);

    /**
     * 根据条件查询地服列表
     * @param condition 查询条件
     * @return
     */
    List<GroundServantDto> groundServants(@Param("condition") GroundServantCondition condition);
}
